﻿<KCtl:BasePhoneApplicationPage 
    x:Class="Kiva7.Pages.SearchFilterPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:KCtl="clr-namespace:Kiva7.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPageLoaded">

    <KCtl:OrientedPivot Title="Kiva7" x:Name="LayoutRoot" Background="Transparent">

        <controls:PivotItem Header="{Binding Path=L.Search, Source={StaticResource L}}">

            <StackPanel Grid.Row="1">
                <toolkit:ListPicker x:Name="lpStatus" Header="{Binding Path=L.Status, Source={StaticResource L}}"  >
                </toolkit:ListPicker>

                <toolkit:ListPicker x:Name="lpRegion" Header="{Binding Path=L.Region, Source={StaticResource L}}" >

                </toolkit:ListPicker>

                <toolkit:ListPicker x:Name="lpSector" Header="{Binding Path=L.Sector, Source={StaticResource L}}" >
                    <sys:String>(None)</sys:String>
                    <sys:String>All</sys:String>
                    <sys:String>Agriculture</sys:String>
                    <sys:String>Arts</sys:String>
                    <sys:String>
                        Clothing
                    </sys:String>
                    <sys:String>
                        Construction
                    </sys:String>
                    <sys:String>
                        Education
                    </sys:String>
                    <sys:String>
                        Entertainment
                    </sys:String>
                    <sys:String>
                        Food
                    </sys:String>
                    <sys:String>
                        Green
                    </sys:String>
                    <sys:String>
                        Health
                    </sys:String>
                    <sys:String>
                        Housing
                    </sys:String>
                    <sys:String>
                        Manufacturing
                    </sys:String>
                    <sys:String>
                        Personal Use
                    </sys:String>
                    <sys:String>
                        Retail
                    </sys:String>
                    <sys:String>
                        Services
                    </sys:String>
                    <sys:String>
                        Transportation
                    </sys:String>
                    <sys:String>
                        Wholesale
                    </sys:String>
                </toolkit:ListPicker>

                <TextBlock Text="{Binding Path=L.Gender, Source={StaticResource L}}" 
                       Style="{StaticResource KivaTextAccentStyle}"/>
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="rbtFemale" GroupName="Gender"  />
                    <TextBlock Text="{Binding Path=L.Female, Source={StaticResource L}}" Style="{StaticResource KivaTextSmallStyle}" 
                           VerticalAlignment="Center"/>
                    <RadioButton x:Name="rbtMale" GroupName="Gender" />
                    <TextBlock Text="{Binding Path=L.Male, Source={StaticResource L}}" Style="{StaticResource KivaTextSmallStyle}"
                           VerticalAlignment="Center"/>
                    <RadioButton GroupName="Gender" IsChecked="True" />
                    <TextBlock Text="{Binding Path=L.None, Source={StaticResource L}}" Style="{StaticResource KivaTextSmallStyle}"
                           VerticalAlignment="Center"/>
                </StackPanel>

                <toolkit:ListPicker x:Name="lpSort" Header="{Binding Path=L.Sort, Source={StaticResource L}}" >

                </toolkit:ListPicker>

            </StackPanel>
        </controls:PivotItem>
    </KCtl:OrientedPivot>

    <KCtl:Bindable.ApplicationBar>
        <KCtl:BindableApplicationBar IsVisible="True" IsMenuEnabled="True" >

        </KCtl:BindableApplicationBar>
    </KCtl:Bindable.ApplicationBar>

</KCtl:BasePhoneApplicationPage>
